﻿using System;
using System.Collections.Generic;
using System.Text;
using Iesi.Collections.Generic;

namespace NHibernateSample.Domain.Entities
{
    public class Customer
    {
        public virtual int Id { get; set; }
        public virtual int Version { get; set; }
        public virtual string FirstName { get; set; }
        public virtual string LastName { get; set; }

        public virtual string FullName
        {
            get { return this.FirstName + " " + this.LastName; }
        }

        //一对多关系：Customer有一个或多个Orders
        public virtual ISet<Order> Orders { get; set; }
    }
}
